package com.ruoyi.jiaopei.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 排课业务对象 tb_sort_curriculum
 *
 * @author macy
 * @date 2024-04-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TbSortCurriculumBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 班级ID
     */
    @NotNull(message = "班级ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long classId;

    /**
     * 上课日期
     */
    @NotBlank(message = "上课日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startDate;

    /**
     * 结束日期
     */
    @NotBlank(message = "结束日期不能为空", groups = {  EditGroup.class })
    private String endDate;

    /**
     * 开始时间
     */
    @NotBlank(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startHour;

    /**
     * 结束时间
     */
    @NotBlank(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endHour;

    /**
     * 类型 1=不重复 2=每天 3=每周
     */
    @NotBlank(message = "类型", groups = { AddGroup.class, EditGroup.class })
    private String type;
    /**
     * 结束方式
     */
    private String jsfs;

    /**
     * 重复次数
     */
    private Long frequency;

    /**
     * 每周几
     */
    private String weekly;

    /**
     * 授课老师
     */
    @NotNull(message = "授课老师不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long teacherId;
    private String teacherName;

    /**
     * 每节课时
     */
    @NotNull(message = "每节课时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal lessonHours;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = {  EditGroup.class })
    private Date createdDate;


    private String className;


}
